package com.freewater.springboot.demo.aop.advice.order.diffadvicetype;

import com.freewater.springboot.demo.aop.advice.order.SomeBusiness;
import com.freewater.springboot.demo.aop.advice.order.SomeBusinessImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@Configuration
@EnableAspectJAutoProxy
public class AppConfig {

    @Bean
    public Aspect1 aspect() {
        return new Aspect1();
    }

    @Bean
    public SomeBusiness someBusiness() {
        return new SomeBusinessImpl();
    }
}
